CVGREYC_PATH = ../../../python-cvgreyc
#CVGREYC_PATH = $(HOME)/Develop/python-cvgreyc
BINARY = sample sampleImage sampleImageC
CFLAGS = -Wall -ansi -pedantic -g -I$(CVGREYC_PATH)/include

all : $(BINARY)

clean :
	rm *.o
	rm $(BINARY)

sample : sample.o ../Sampler.o
	g++ $^ -o $@ $(CFLAGS)

sampleImage : sampleImage.o ../Sampler.o
	g++ $^ -o $@ $(CFLAGS)

sampleImageC : sampleImageC.o
	g++ $^ -o $@ $(CFLAGS) -L.. -lsampler

%.o : %.cpp
	g++ -c $< -o $@ $(CFLAGS)
